package com.didispace.requestCacheByComment;

import com.didispace.web.User;
import com.didispace.requestCacheByComment.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

// @RestController
// public class UserController {
//     @Autowired
//     UserService userService;
//
//     @RequestMapping(value = "/requestCacheByComment", method = RequestMethod.GET)
//     public User UserConsumber(@RequestParam(value = "name") String name) {
//         return userService.getUserByName(name);
//     }
// }


